package com.bwda.dsrs.filecenter.domain.condition.userfilespace;

import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * settingid 变更
 *
 * @author liangjianyong
 * @date 2019/6/1
 */
@Data
public class ChangeSettingIdCondition {

    /**
     * 组织ID
     */
    private List<Integer> orgIdList;

    /**
     * 新的settingId
     */
    private Integer newSettingId;

    /**
     * 获取组织ID列表
     * @return
     */
    public List<String> getOrgIdStrList(){
        if(orgIdList!=null&&orgIdList.size()>0){
            List<String> orgIdStrList=new ArrayList<>();
            orgIdList.forEach(data->{
                orgIdStrList.add(String.valueOf(data));
            });
            return orgIdStrList;
        }
        return null;
    }

}
